include('shared.lua')

function ENT:Think()
	if (self.dt.On == false) then return end
	local dlight = DynamicLight(self.Entity:EntIndex())
	if (dlight) then
		local r, g, b, a = self:GetColor()
		dlight.Pos = self:GetPos()
		dlight.r = r
		dlight.g = g
		dlight.b = b
		dlight.Brightness = 5
		dlight.Size = 400
		dlight.Decay = 1200
		dlight.DieTime = CurTime() + 1
	end
end
